package com.scrcu.cloud.wechat.home.endpoint.customer.service.Iml;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.scrcu.cloud.wechat.home.endpoint.common.model.RestResponse;
import com.scrcu.cloud.wechat.home.endpoint.customer.entity.InstitutionOthers;
import com.scrcu.cloud.wechat.home.endpoint.customer.mapper.OtherMapper;
import com.scrcu.cloud.wechat.home.endpoint.customer.service.IOtherService;
import org.springframework.stereotype.Service;

import java.util.ArrayList;

@Service
public class OtherServiceIml extends ServiceImpl<OtherMapper, InstitutionOthers> implements IOtherService {
    @Override
    public RestResponse getATMByCityName(String cityname) {
        ArrayList<InstitutionOthers> atms  = (ArrayList<InstitutionOthers>) getBaseMapper().getATMByCityName(cityname);
//        System.out.println(atms);
        return RestResponse.success(atms);
    }

    @Override
    public RestResponse getHelpByCityName(String cityname) {
        ArrayList<InstitutionOthers> atms  = (ArrayList<InstitutionOthers>) getBaseMapper().getHelpByCityName(cityname);
//        System.out.println(atms);
        return RestResponse.success(atms);
    }

    @Override
    public RestResponse getServiceByCityName(String cityname) {
        ArrayList<InstitutionOthers> atms  = (ArrayList<InstitutionOthers>) getBaseMapper().getServiceByCityName(cityname);
//        System.out.println(atms);
        return RestResponse.success(atms);
    }

    @Override
    public RestResponse getShopByCityName(String cityname) {
        ArrayList<InstitutionOthers> atms  = (ArrayList<InstitutionOthers>) getBaseMapper().getShopByCityName(cityname);
//        System.out.println(atms);
        return RestResponse.success(atms);
    }
}
